//请求路径常量
//请求路径常量   switch下的东西可以整合  但service是对数据库的数据进行处理   所以不同情况下可能有不同的处理  所以保留
import * as req_con from '../../utils/constant'
import {roomTypeService} from '../service/RoomTypeService'
export let roomTypeController = (url,params) => {
    switch (url) {
        //RoomType 
        case req_con.ROOMTYPE_CONSTANT.ROOMTYPELISTGET:
            return  roomTypeService(url,params)
        case req_con.ROOMTYPE_CONSTANT.ROOMTYPEADD:
            return  roomTypeService(url,params)
        case req_con.ROOMTYPE_CONSTANT.ROOMTYPEELETE:
            return  roomTypeService(url,params)
        case req_con.ROOMTYPE_CONSTANT.ROOMTYPEUPDATE:
            return  roomTypeService(url,params)
        default:
            break;
    }
}